#!/bin/bash
cd /root/init-script
if [ ! -f finish.txt ]; then
sleep 1
./prepare_composer.sh
./createdb.sh ucx   ucx    ucx
./createdb.sh ucx_t ucx_t  ucx_t
/vagrant/webapp/yii mongodb-migrate --interactive=0 > /dev/null
/vagrant/webapp/yii migrate --interactive=0 >/dev/null
echo "finish"
touch finish.txt
fi;